package com.nulldev.util.promise;

import com.nulldev.util.java.ReflectionUtils;

public interface Promise<T> {
	public static final Void VOID = (Void) ReflectionUtils.createInstance("java.lang.Void");
	
	public T run() throws Throwable;
	
	public void result(final T result);
	
	public void error(final Throwable throwable);
}
